﻿using UnityEngine;

internal class SimpleCameraMove : MonoBehaviour
{
    public float speed = 5;
    private void Update()
    {
        float h = Input.GetAxisRaw("Horizontal");
        float v = Input.GetAxisRaw("Vertical");

        Vector3 dir = new Vector3(h, 0, v).normalized;
        transform.Translate(dir * Time.deltaTime * speed);
    }
}